home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 65.zip / BS1 part 65 / DevPac v3.02b.adf / include / graphics / copper.i < prev    next >
Text File  |  1991-11-20  |  2KB  |  64 lines

  1.     IFND    GRAPHICS_COPPER_I
  2. GRAPHICS_COPPER_I    SET    1
  3. **
  4. **    $Filename: graphics/copper.i $
  5. **    $Release: 1.3 $
  6. **
  7. **    
  8. **
  9. **    (C) Copyright 1985,1986,1987,1988 Commodore-Amiga, Inc.
  10. **        All Rights Reserved
  11. **
  12.  
  13. COPPER_MOVE equ 0    /* pseude opcode for move #XXXX,dir */
  14. COPPER_WAIT equ 1     /* pseudo opcode for wait y,x */
  15. CPRNXTBUF   equ 2    /* continue processing with next buffer */
  16. CPR_NT_LOF  equ $8000  /* copper instruction only for short frames */
  17. CPR_NT_SHT  equ $4000    /* copper instruction only for long frames */
  18.  
  19.    STRUCTURE   CopIns,0
  20.       WORD  ci_OpCode       * 0 = move, 1 = wait */
  21.       STRUCT   ci_nxtlist,0   * UNION
  22.       STRUCT   ci_VWaitPos,0
  23.       STRUCT   ci_DestAddr,2
  24.  
  25.       STRUCT   ci_HWaitPos,0
  26.       STRUCT   ci_DestData,2
  27.  
  28.    LABEL ci_SIZEOF
  29.  
  30. * structure of cprlist that points to list that hardware actually executes */
  31.    STRUCTURE   cprlist,0
  32.       APTR  crl_Next
  33.       APTR  crl_start
  34.       WORD  crl_MaxCount
  35.    LABEL crl_SIZEOF
  36.  
  37.    STRUCTURE   CopList,0
  38.       APTR  cl_Next  /* next block for this copper list */
  39.       APTR  cl__CopList     /* system use */
  40.       APTR  cl__ViewPort /* system use */
  41.       APTR  cl_CopIns /* start of this block */
  42.       APTR  cl_CopPtr /* intermediate ptr */
  43.       APTR  cl_CopLStart   /* mrgcop fills this in for Long Frame*/
  44.       APTR  cl_CopSStart   /* mrgcop fills this in for Short Frame*/
  45.       WORD  cl_Count       /* intermediate counter */
  46.       WORD  cl_MaxCount      /* max # of copins for this block */
  47.       WORD  cl_DyOffset       /* offset this copper list vertical waits */
  48.    LABEL cl_SIZEOF
  49.  
  50.    STRUCTURE   UCopList,0
  51.       APTR     ucl_Next
  52.       APTR     ucl_FirstCopList /* head node of this copper list */
  53.       APTR     ucl_CopList /* node in use */
  54.    LABEL ucl_SIZEOF
  55.  
  56. *  private graphics data structure
  57.    STRUCTURE   copinit,0
  58.       STRUCT   copinit_diagstrt,8
  59.       STRUCT   copinit_sprstrtup,2*((2*8*2)+2+(2*2)+2)
  60.       STRUCT   copinit_sprstop,4
  61.    LABEL copinit_SIZEOF
  62.  
  63.     ENDC    ; GRAPHICS_COPPER_I
  64.